import request from '@/utils/request';

export function initByDomain(params) {
  return request({
    url: 'rest/api/sys/login/code/cache',
    method: 'get',
    params
  });
}

export function openUrl(data) {
  return request({
    url: '/rest/api/portal/live/query/path/v1/post',
    method: 'post',
    data
  });
}

export function openCasUrl(data) {
  return request({
    url: '/rest/api/portal/live/query/path/v1/cas',
    method: 'post',
    data
  });
}

export function openRedirectUrl(params) {
  return request({
    url: '/rest/api/portal/live/query/path/v1/short',
    method: 'get',
    params
  });
}
